package com.lxz.shardingjdbcdemo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import java.math.BigDecimal;

@Data
@TableName("t_order") // 注意：这里写的是逻辑表名
public class Order {
    @TableId(value = "order_id", type = IdType.NONE) // 使用ShardingSphere的ID生成策略
    private Long orderId;

    private Integer userId;

    private String orderNo;

    private BigDecimal amount;

}